package com.itheima.demoString;

import java.util.Scanner;

public class Demo07String {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请口吐芬芳:");
        String str = sc.next();
        //String s = str.replace("TMD", "***");
        String[] arr = {"tmd", "TMD", "SB", "sb"};

        for (int i = 0; i < arr.length; i++) {
            str = str.replace(arr[i],"***");
        }
        System.out.println(str);
    }
}
